package com.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bean.ReturnApplyMaterial;
import com.mapper.ReturnApplyMaterialMapper;
import com.service.ReturnApplyMaterialService;

/**
 * @author author : 张鹏
 * @date createTime：2018年2月25日 下午6:07:38
 * @Description: 该类的功能描述
 */
@Service
public class ReturnApplyMaterialServiceImpl implements
		ReturnApplyMaterialService {
	@Resource
	private ReturnApplyMaterialMapper returnApplyMaterialMapper;

	@Override
	public int createNewReturnApplyMaterial(ReturnApplyMaterial record) {
		// TODO Auto-generated method stub
		return returnApplyMaterialMapper.insert(record);
	}

	@Override
	public List<ReturnApplyMaterial> getReturnApplyMaterialListByReturnApplyId(
			int returnApplyId) {
		// TODO Auto-generated method stub
		return returnApplyMaterialMapper.selectByReturnApplyId(returnApplyId);
	}

	@Override
	public List<ReturnApplyMaterial> getReturnApplyMaterialGroupByMaterialId() {
		return returnApplyMaterialMapper.selectAllGroupByMaterialId();
	}

}
